home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / Reference / DevCon / Washington_1988 / DevCon88.3 / Printer / src / Xerox_4020 / data.c next >
Encoding:
Text File  |  1992-08-27  |  6.3 KB  |  233 lines

  1. /*
  2.     Data.c table for Xerox_4020 driver.
  3.     David Berezowski - March/88.
  4.  
  5.   Copyright (c) 1988 Commodore-Amiga, Inc.
  6.  
  7.   Executables based on this information may be used in software
  8.   for Commodore Amiga computers.  All other rights reserved.
  9.  
  10.   This information is provided "as is"; no warranties are made.
  11.   All use is at your own risk, and no liability or responsibility is assumed.
  12. */
  13.  
  14.  
  15. char *CommandTable[]={
  16.             /* 00 aRIS reset            */
  17.     "\375\033\015P\375",
  18.     "\377",        /* 01 aRIN initialize            */
  19.     "\012",        /* 02 aIND linefeed            */
  20.     "\015\012",    /* 03 aNEL CRLF                */
  21.     "\377",        /* 04 aRI reverse LF            */
  22.     
  23.     "\033R",    /* 05 aSGR0 normal char set        */
  24.     "\377",        /* 06 aSGR3 italics on            */
  25.     "\377",        /* 07 aSGR23 italics off        */
  26.     "\033E",    /* 08 aSGR4 underline on        */
  27.     "\033R",    /* 09 aSGR24 underline off        */
  28.     "\377",        /* 10 aSGR1 boldface on            */
  29.     "\377",        /* 11 aSGR22 boldface off        */
  30.     "\377",        /* 12 aSFC set foreground color        */
  31.     "\377",        /* 13 aSBC set background color        */
  32.     
  33.     "\033F0\033&",    /* 14 aSHORP0 normal pitch        */
  34.     "\033F2",    /* 15 aSHORP2 elite on            */
  35.     "\033F0",    /* 16 aSHORP1 elite off            */
  36.     "\033F4",    /* 17 aSHORP4 condensed fine on        */
  37.     "\033F0",    /* 18 aSHORP3 condensed fine off    */
  38.     "\033W20",    /* 19 aSHORP6 enlarge on        */
  39.     "\033&",    /* 20 aSHORP5 enlarge off        */
  40.     
  41.     "\377",        /* 21 aDEN6 shadow print on        */
  42.     "\377",        /* 22 aDEN5 shadow print off        */
  43.     "\377",        /* 23 aDEN4 double strike on        */
  44.     "\377",        /* 24 aDEN3 double strike off        */
  45.     "\033wa",    /* 25 aDEN2 NLQ on            */
  46.     "\033wb",    /* 26 aDEN1 NLQ off            */
  47.     
  48.     "\033t",    /* 27 aSUS2 superscript on        */
  49.     "\033s",    /* 28 aSUS1 superscript off        */
  50.     "\033u",    /* 29 aSUS4 subscript on        */
  51.     "\033s",    /* 30 aSUS3 subscript off        */
  52.     "\033s",    /* 31 aSUS0 normalize the line        */
  53.     "\377",        /* 32 aPLU partial line up        */
  54.     "\377",        /* 33 aPLD partial line down        */
  55.     
  56.     "\377",        /* 34 aFNT0 Typeface 0            */
  57.     "\377",        /* 35 aFNT1 Typeface 1            */
  58.     "\377",        /* 36 aFNT2 Typeface 2            */
  59.     "\377",        /* 37 aFNT3 Typeface 3            */
  60.     "\377",        /* 38 aFNT4 Typeface 4            */
  61.     "\377",        /* 39 aFNT5 Typeface 5            */
  62.     "\377",        /* 40 aFNT6 Typeface 6            */
  63.     "\377",        /* 41 aFNT7 Typeface 7            */
  64.     "\377",        /* 42 aFNT8 Typeface 8            */
  65.     "\377",        /* 43 aFNT9 Typeface 9            */
  66.     "\377",        /* 44 aFNT10 Typeface 10        */
  67.     
  68.     "\377",        /* 45 aPROP2 proportional on        */
  69.     "\377",        /* 46 aPROP1 proportional off        */
  70.     "\377",        /* 47 aPROP0 proportional clear        */
  71.     "\377",        /* 48 aTSS set proportional offset    */
  72.     "\377",        /* 49 aJFY5 auto left justify        */
  73.     "\377",        /* 50 aJFY7 auto right justify        */
  74.     "\377",        /* 51 aJFY6 auto full jusitfy        */
  75.     "\377",        /* 52 aJFY0 auto jusity off        */
  76.     "\377",        /* 53 aJFY3 letter space        */
  77.     "\377",        /* 54 aJFY1 word fill            */
  78.     
  79.     "\377",        /* 55 aVERP0 1/8" line spacing        */
  80.     "\377",        /* 56 aVERP1 1/6" line spacing        */
  81.     "\033\014",    /* 57 aSLPP set form length        */
  82.     "\377",        /* 58 aPERF perf skip n (n > 0)        */
  83.     "\377",        /* 59 aPERF0 perf skip off        */
  84.     
  85.     "\0339",    /* 60 aLMS set left margin        */
  86.     "\0330",    /* 61 aRMS set right margin        */
  87.     "\377",        /* 62 aTMS set top margin        */
  88.     "\377",        /* 63 aBMS set bottom margin        */
  89.     "\377",        /* 64 aSTBM set T&B margins        */
  90.     "\377",        /* 65 aSLRM set L&R margins        */
  91.     "\377",        /* 66 aCAM clear margins        */
  92.     
  93.     "\0331",    /* 67 aHTS set horiz tab        */
  94.     "\377",        /* 68 aVTS set vert tab            */
  95.     "\0338",    /* 69 aTBC0 clear horiz tab        */
  96.     "\0332",    /* 70 aTBC3 clear all horiz tabs    */
  97.     "\377",        /* 71 aTBC1 clear vert tab        */
  98.     "\377",        /* 72 aTBC4 clear all vert tabs        */
  99.     "\0332",    /* 73 aTBCALL clear all h & v tabs    */
  100.             /* 74 aTBSALL set default tabs        */
  101.     "\033i9,17,25,33,41,49,57,65,73,81,89,97,105,113,121,129",
  102.  
  103.     "\377",        /* 75 aEXTEND extended commands        */
  104.     "\377"        /* 76 aRAW next 'n' chars are raw    */
  105. };
  106.  
  107.  
  108. char *ExtendedCharTable[] = {
  109. /*
  110.     " ", "!", "c", "L", "o", "Y", "|", "S",
  111.     "\"", "c", "a", "`", "~", "-", "r", "-",
  112.     "*", "+", "2", "3", "'", "u", "P", ".",
  113.     ",", "1", "o", "'", "/", "/", "/", "?",
  114.     "A", "A", "A", "A", "A", "A", "A", "C",
  115.     "E", "E", "E", "E", "I", "I", "I", "I",
  116.     "D", "N", "O", "O", "O", "O", "O", "x",
  117.     "O", "U", "U", "U", "U", "Y", "T", "3",
  118.     "a", "a", "a", "a", "a", "a", "a", "c",
  119.     "e", "e", "e", "e", "i", "i", "i", "i",
  120.     "d", "n", "o", "o", "o", "o", "o", "/",
  121.     "o", "u", "u", "u", "u", "y", "t", "y"
  122. };
  123.  
  124. */
  125.     " ",            /*    ok */
  126.     "!",            /* !  ok */
  127.     "\174\010c",        /* "  ok */
  128.     "\323",            /* #  ok */
  129.     "\324",            /* $  ok */
  130.     "-\010Y",        /* %  ok */
  131.     "|",            /* &  ok */
  132.     "\335\010S",        /* '  ok */
  133.  
  134.     "\310 ",        /* (  ok */
  135.     "c",            /* )  ok */
  136.     "\314a",        /* *  ok */
  137.     "`",            /* +  ok */
  138.     "\305 ",        /* ,  ok */
  139.     "-",            /* -  ok */
  140.     "r",            /* .  ok */
  141.     "\305 ",        /* /  ok */
  142.  
  143.     "\312 ",        /* 0  ok */
  144.     "\314+",        /* 1  ok */
  145.     "2",             /* 2  ok */
  146.     "3",             /* 3  ok */
  147.     "\302 ",        /* 4  ok */
  148.     "\330",            /* 5  ok */
  149.     "P",            /* 6  ok */
  150.     "\335",            /* 7  ok */
  151.  
  152.     ",",            /* 8  ok */
  153.     "1",             /* 9  ok */
  154.     "\314o",        /* :  ok */
  155.     "'",            /* ;  ok */
  156.     "/",            /* <  ok */
  157.     "/",            /* =  ok */
  158.     "/",            /* >  ok */
  159.     "\334",            /* ?  ok */
  160.  
  161.     "\301A",        /* @  ok */
  162.     "\302A",        /* A  ok */
  163.     "\303A",        /* B  ok */
  164.     "\304A",        /* C  ok */
  165.     "\310A",        /* D  ok */
  166.     "\312A",        /* E  ok */
  167.     "\322",            /* F  ok */
  168.     "\313C",        /* G  ok */
  169.  
  170.     "\301E",        /* H  ok */
  171.     "\302E",        /* I  ok */
  172.     "\303E",        /* J  ok */
  173.     "\310E",        /* K  ok */
  174.     "\301I",        /* L  ok */
  175.     "\302I",        /* M  ok */
  176.     "\303I",        /* N  ok */
  177.     "\310I",        /* O  ok */
  178.  
  179.     "-\010D",        /* P  ok */
  180.     "\304N",        /* Q  ok */
  181.     "\301O",        /* R  ok */
  182.     "\302O",        /* S  ok */
  183.     "\303O",        /* T  ok */
  184.     "\304O",        /* U  ok */
  185.     "\310O",        /* V  ok */
  186.     "x",            /* W  ok */
  187.  
  188.     "0",            /* X  ok */
  189.     "\301U",        /* Y  ok */
  190.     "\302U",        /* Z  ok */
  191.     "\303U",        /* [  ok */
  192.     "\310U",        /* \  ok */
  193.     "\302Y",        /* ]  ok */
  194.     "T",            /* ^  ok */
  195.     "\333",            /* _  ok */
  196.  
  197.     "\301a",        /* `  ok */
  198.     "\302a",        /* a  ok */
  199.     "\303a",        /* b  ok */
  200.     "\304a",        /* c  ok */
  201.     "\310a",        /* d  ok */
  202.     "\312a",        /* e  ok */
  203.     "\321",            /* f  ok */
  204.     "\313c",        /* g  ok */
  205.  
  206.     "\301e",        /* h  ok */
  207.     "\302e",        /* i  ok */
  208.     "\303e",        /* j  ok */
  209.     "\310e",        /* k  ok */
  210.     "\301i",        /* l  ok */
  211.     "\302i",        /* m  ok */
  212.     "\303i",        /* n  ok */
  213.     "\310i",        /* o  ok */
  214.  
  215.     "d",            /* p  ok */
  216.     "\304n",        /* q  ok */
  217.     "\301o",        /* r  ok */
  218.     "\302o",        /* s  ok */
  219.     "\303o",        /* t  ok */
  220.     "\304o",        /* u  ok */
  221.     "\310o",        /* v  ok */
  222.     "/",            /* w  ok */
  223.  
  224.     "\311o",        /* x  ok */
  225.     "\301u",        /* y  ok */
  226.     "\302u",        /* z  ok */
  227.     "\303u",        /* {  ok */
  228.     "\310u",        /* |  ok */
  229.     "\302y",        /* }  ok */
  230.     "t",            /* ~  ok */
  231.     "\310y"            /*    ok */
  232. };
  233.